package org.doubango.FrCall.Screens;

import org.doubango.FrCall.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class YuYin extends Activity {
	private Button end;
	private TextView tvNN,tvId;
	private Button tvback;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.yuyin);
		tvback=(Button)findViewById(R.id.num_reg_back_select);
		Intent intent=getIntent();
		String nickname=intent.getStringExtra("nickname");
		String id=intent.getStringExtra("id");
		end=(Button) findViewById(R.id.n_to_check);
		tvNN=(TextView) findViewById(R.id.textView1);
		tvId=(TextView) findViewById(R.id.textView2);
		tvNN.setText("昵称:"+nickname);
		tvId.setText("ID:"+id);
		end.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i=new Intent(getApplicationContext(), showFriendInfoPage.class);
				startActivity(i);
			}
		});
		tvback.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i=new Intent(getApplicationContext(), showFriendInfoPage.class);
				startActivity(i);
			}
		});
	}
}
